import axios from "axios";

export const request = axios.create({
    baseURL:process.env.VUE_APP_BASE_API,
    timeout:5000
})
request.interceptors.request.use(config=>{
    return config
})

request.interceptors.response.use(response=>{
    return Promise.resolve(response.data)
},error => {
    return Promise.reject(error)
})

